<form onsubmit="return false;" data-auto="true" action="{:url()}" method="post" class='layui-form layui-card' autocomplete="off">
    <div class="layui-card-body">
        <div class="padding-right-40">
            <div class="color-blue padding-left-40 padding-bottom-20">
                设置邮箱配置，用于发送邮件
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">主机地址<br><span class="nowrap color-desc">SMTP</span></label>
                <div class="layui-input-block">
                    <input type="text" name="email_host" required value="{:sysconf('email_host')}" placeholder="请输入smtp.qq.com" class="layui-input">

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">端口<br><span class="nowrap color-desc">Port</span></label>
                <div class="layui-input-block">
                    <input type="text" name="email_port" required value="{:sysconf('email_port')}" placeholder="请输入端口465" class="layui-input">

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮箱号<br><span class="nowrap color-desc">E-mail</span></label>
                <div class="layui-input-block">
                    <input type="text" name="email_username" required value="{:sysconf('email_username')}" placeholder="请输入邮箱号" class="layui-input">

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">密码<br><span class="nowrap color-desc">Password</span></label>
                <div class="layui-input-block">
                    <input type="text" name="email_password" required value="{:sysconf('email_password')}" placeholder="请输入邮箱密码" class="layui-input">

                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">邮件发送名称<br><span class="nowrap color-desc">Title</span></label>
                <div class="layui-input-block">
                    <input type="text" name="email_title" required value="{:sysconf('email_title')}" placeholder="请输入邮箱密码" class="layui-input">

                </div>
            </div>
            <div class="hr-line-dashed margin-left-40"></div>
            <div class="layui-form-item text-center padding-left-40">
                <input type="hidden" name="storage_type" value="local">
                <button class="layui-btn" type="submit">保存配置</button>
                <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消修改吗？" data-close>取消修改</button>
            </div>
        </div>
    </div>
</form>